/*
 * ChooseBankCardPresenter.java
 * business
 *
 * Created by ChenTao on 2017/2/21.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.main.shoppingcart.choosebankcard;

import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.ChooseBankCardListItem;

import java.util.ArrayList;
import java.util.List;

public class ChooseBankCardPresenter implements ChooseBankCardContract.Presenter {

    private ChooseBankCardContract.View mChooseBankCardView;

    public ChooseBankCardPresenter(ChooseBankCardContract.View view) {
        mChooseBankCardView = view;
        mChooseBankCardView.setPresenter(this);
    }

    @Override
    public void start() {

        List<DisplayListItem> displayListItems = new ArrayList<>();

        DisplayListItem item = new ChooseBankCardListItem(null);
        displayListItems.add(item);
        displayListItems.add(item);
        displayListItems.add(item);
        displayListItems.add(item);
        displayListItems.add(item);
        displayListItems.add(item);
        displayListItems.add(item);

        mChooseBankCardView.setDisplayListItems(displayListItems);
    }
}
